import {
    SERVER,

    SERVER_API_MAICAI,
    SERVER_API_MAICAI_PYTHON,

    SERVER_ZAITAO,
    SERVER_API_ZAITAO,

    SERVER_PAY,
    SERVER_PAY_TEST,

    SERVER_QINIU_UPLOAD,
} from './servers';


export const URLS = {
    HOME_URL: SERVER,
    ZAITAO_TRADE: SERVER_ZAITAO + '#!/trade',

    /** 微信相关接口 **/
    WEIXIN_AUTH: SERVER_API_MAICAI + 'weixin/auth',
    WEIXIN_CALLBACK: SERVER_API_MAICAI + 'weixin/callback',
    WEIXIN_SHARE: SERVER_API_ZAITAO + 'userApi/weixinJsapi',

    /** 定位相关接口 **/
    /** 用户周边搜索 **/
    LOCATION_AROUND: SERVER_API_MAICAI_PYTHON + 'api/v1/user/location/around/',
    /** 用户启动APP, 自动定位 **/
    LOCATION_CHECK: SERVER_API_MAICAI_PYTHON + 'api/v1/user/location/check/',
    /** 用户关键字搜索 **/
    LOCATION_SEARCH: SERVER_API_MAICAI_PYTHON + 'api/v1/user/location/search/',
    /** 定位当前用户所在位置 **/
    LOCATION_CURRENT: SERVER_API_MAICAI_PYTHON + 'api/v1/user/location/',

    /** 用户相关接口 **/
    USER_CHECK_LOGIN: SERVER_API_MAICAI + 'user/checkLogin',
    USER_GET_SMS: SERVER_API_MAICAI + 'user/getSms',
    USER_LOGIN: SERVER_API_MAICAI + 'user/qlogin',
    USER_INFO: SERVER_API_MAICAI + 'user/info',
    USER_IMAGE_CODE: SERVER_API_MAICAI + 'user/verifyCode',
    USER_LOGOUT: SERVER_API_MAICAI + 'user/logout',
    USER_LOGOUT_PYTHON: SERVER_API_MAICAI_PYTHON + 'api/v1/auth/logout/',

    /** 我的信息 **/
    MINE_USER_INFO: SERVER_API_MAICAI_PYTHON + 'api/v1/user/detail/',

    /** 地址相关接口 **/
    /** 判断地址是否可用 **/
    ADDRESS_CHECK: SERVER_API_MAICAI_PYTHON + 'user/checkLogin',
    /** 用户获取地址列表 **/
    ADDRESS_GET_LIST: SERVER_API_MAICAI_PYTHON + 'api/v1/user/address/',
    /** 用户新增/修改地址信息 **/
    ADDRESS_UPSERT: SERVER_API_MAICAI_PYTHON + 'api/v1/user/address/upsert/',
    /** 删除地址 **/
    ADDRESS_REMOVE: SERVER_API_MAICAI_PYTHON + 'api/v1/user/address/delete/',
    /** 用户获取默认地址信息 **/
    ADDRESS_GET_DEFAULT: SERVER_API_MAICAI_PYTHON + 'api/v1/user/address/default/',
    /** 用户设置默认地址信息 **/
    ADDRESS_UPSERT_DEFAULT: SERVER_API_MAICAI_PYTHON + 'api/v1/user/address/default/upsert/',

    HOME_DETAIL: SERVER_API_MAICAI + 'homeApi/details',
    HOME_POP_AD: SERVER_API_MAICAI + 'homeApi/GetHomeAdPop',
    SERVER_TIME: SERVER_API_MAICAI + 'homeApi/serverTime',

    /** 商品分类相关接口 **/
    CATEGORY_GET_CATEGORY_LIST: SERVER_API_MAICAI + 'homeApi/categories',
    CATEGORY_GET_CATEGORY: SERVER_API_MAICAI + 'homeApi/categoriesdetail',

    /** 商品相关接口 **/
    PRODUCT_GET_CATEGORY_LIST: SERVER_API_MAICAI_PYTHON + 'api/v1/product/cate/',
    PRODUCT_GET_LIST: SERVER_API_MAICAI + 'productApi/GetCategory',
    /** 限时抢购 **/
    PRODUCT_GET_PANIC_LIST: SERVER_API_MAICAI + 'ProductApi/GetPanicList',
    PRODUCT_GET_DEBUT_LIST: SERVER_API_MAICAI + 'productApi/getBeginnerWelfareList',
    PRODUCT_GET_ACTIVITY_LIST: SERVER_API_MAICAI + 'activity/detail',
    PRODUCT_GET_DETAIL: SERVER_API_MAICAI + 'productApi/productDetail',

    /** 订单相关接口 **/
    ORDER_CHECK_CART: SERVER_API_MAICAI + 'order/checkCart',
    ORDER_CHECK_CART_NEW: SERVER_API_MAICAI + 'order/NewCart',
    ORDER_GET_RECOMMEND: SERVER_API_MAICAI + 'order/getRecommend',
    ORDER_CREATE: SERVER_API_MAICAI + 'order/addNewOrder',
    ORDER_REPAY: SERVER_API_MAICAI + 'order/repay',
    ORDER_GET_LIST: SERVER_API_MAICAI + 'order/list', // 订单列表
    ORDER_GET_LIST_NO: SERVER_API_MAICAI + 'order/NotPayList',// 订单列表-未支付
    ORDER_GET_LIST_GOODS: SERVER_API_MAICAI + 'order/DoingList',// 订单列表-待收货
    ORDER_GET_LIST_EVALUATE: SERVER_API_MAICAI + 'order/EvaluateList',// 订单列表-待评价
    ORDER_GET_DETAIL: SERVER_API_MAICAI + 'order/detail',
    ORDER_GET_ORDER_STATE: SERVER_API_MAICAI + 'order/orderStates',
    ORDER_CANCEL: SERVER_API_MAICAI + 'order/cancel',
    ORDER_GET_RESERVE_TIME: SERVER_API_MAICAI + 'order/getReserveTime',
    ORDER_CHECK_PAY_STATUS: SERVER_API_MAICAI + 'order/checkPayStatus',
    ORDER_BALANCE: SERVER_API_MAICAI + 'balance/balance',  //余额

    /** 优惠券相关接口 **/
    COUPON_LIST: SERVER_API_MAICAI + 'coupon/list',
    COUPON_USABLE: SERVER_API_MAICAI + 'coupon/usable',
    COUPON_DEFAULT: SERVER_API_MAICAI + 'coupon/default',
    COUPON_NOTICE: SERVER_API_MAICAI + 'coupon/notice',
    COUPON_EXCHANGE: SERVER_API_MAICAI + 'event/invite',

    /** 评价相关接口 **/
    COMMENT_ADD: SERVER_API_MAICAI + 'comment/add',
    COMMENT_INFO: SERVER_API_MAICAI + 'comment/info',
    COMMENT_ADD_APPLET: SERVER_API_MAICAI + 'comment/addNew',
    COMMENT_ADD_NEW: SERVER_API_MAICAI + 'comment/AddComment',
    COMMENT_INFO_NEW: SERVER_API_MAICAI + 'comment/infoNew',

    /** 搜索 **/
    SEARCH_KEY: SERVER_API_MAICAI + 'search/SearchSuggest',
    SEARCH_PRODUCT_LIST: SERVER_API_MAICAI + 'search/SearchProduct',

    /** 支付接口 **/
    WEIXIN_MP_PAY: SERVER_PAY + 'pay/wx.php',
    WEIXIN_MP_PAY_TEST: SERVER_PAY_TEST + 'pay/wx.php',

    /** 活动接口 **/
    EVENT_GET_SETTINGS: SERVER_API_MAICAI + 'event/info',
    EVENT_ATTEND: SERVER_API_MAICAI + 'event/attend',

    /** CMS接口 **/
    CMS_GET_DATA: SERVER_API_MAICAI + 'event/page',

    /** 推广员系统接口 **/
    INVITE_GET_SMS: SERVER_API_MAICAI + 'invite/getsms',
    INVITE_LOGIN: SERVER_API_MAICAI + 'invite/login',
    INVITE_LOGOUT: SERVER_API_MAICAI + 'invite/logout',
    INVITE_REGISTER: SERVER_API_MAICAI + 'invite/register',
    INVITE_GET_CHANNELS: SERVER_API_MAICAI + 'invite/getchannellist',
    INVITE_UPDATE_USER: SERVER_API_MAICAI + 'invite/updateuserinfo',
    INVITE_GET_USER: SERVER_API_MAICAI + 'invite/user',
    INVITE_GET_GET_RECORDS: SERVER_API_MAICAI + 'invite/records',

    /** 邀请有礼接口 **/
    GIFT_EARN_INFO: SERVER_API_MAICAI + 'share/info',
    GIFT_EARN_EVENT_INFO: SERVER_API_MAICAI + 'share//eventinfo',
    GIFT_RECEIVE_ATTEND: SERVER_API_MAICAI + 'share/attend',
    GIFT_VIEW_DETAIL: SERVER_API_MAICAI + 'share/GetViewUserDetail',
    GIFT_INVITING_DETAIL: SERVER_API_MAICAI + 'share/GetInvitingUserDetail',
    GIFT_INVITED_DETAIL: SERVER_API_MAICAI + 'share/GetInvitedUserDetail',
    GIFT_GET_REWORDS: SERVER_API_MAICAI + 'share/GetInviteTicket',
    GIFT_GET_REWORDS_GRAND: SERVER_API_MAICAI + 'share/getAwardTicket',

    /** 分享抢红包(翻牌) **/
    PACK_SHARE_DETAIL: SERVER_API_MAICAI + 'event/ShareDetail',
    PACK_GET_ROB: SERVER_API_MAICAI + 'event/RobRedPacket',

    /** 分享抢红包(手气最佳) **/
    PACK_SHARE_LUCKY_DETAIL: SERVER_API_MAICAI + 'event/SpellLuckRedPacket',

    /** 售后/退款 **/
    REFUND_ORDERS: SERVER_API_MAICAI + 'refund/orders',      //售后申请列表
    REFUND_DETAILS: SERVER_API_MAICAI + 'refund/detail',     //申请详情
    REFUND_CHECK: SERVER_API_MAICAI + 'refund/check',        //加减获取价格
    REFUND_LIST: SERVER_API_MAICAI + 'refund/list',          //申请纪录列表
    REFUND_APPLY_INFO: SERVER_API_MAICAI + 'refund/info',    //提交申请信息
    REFUND_APPLY_SUBMIT: SERVER_API_MAICAI + 'refund/apply', //提交接口

    /** 拼团相关 **/
    PINTUAN_PRODUCT_LIST: SERVER_API_MAICAI + 'groupon/list',
    PINTUAN_PRODUCT_DETAIL: SERVER_API_MAICAI + 'groupon/ProductDetail',
    PINTUAN_GET_RESERVE_TIME: SERVER_API_MAICAI + 'groupon/getReserveTime',
    PINTUAN_ORDER_CREATE: SERVER_API_MAICAI + 'groupon/addOrder',
    PINTUAN_DETAILS: SERVER_API_MAICAI + 'groupon/detail',
    PINTUAN_TOP_AD: SERVER_API_MAICAI + 'groupon/getad',
    PINTUAN_HAD_BUY: SERVER_API_MAICAI + 'groupon/buycount',  //拼团已购数量

    /** 七牛上传相关接口 **/
    QINIU_TOKEN: SERVER_API_MAICAI + 'qiniu/token',
    QINIU_UPLOAD: SERVER_QINIU_UPLOAD + 'putb64/-1',
    QINIU_IMAGE_DOMAIN: 'https://ddimg.ddxq.mobi/',

    /** 客服中心 **/
    CONTACT_SERVICE: SERVER_API_MAICAI + 'tool/askAndQuestion',

    /** 积分 **/
    INTEGRAL_DETAIL: SERVER_API_MAICAI + 'point/detail/',         //积分详情
    INTEGRAL_FLOW_LIST: SERVER_API_MAICAI + 'point/flow/',        //积分明细
    INTEGRAL_SIGN_NOTIFY: SERVER_API_MAICAI + 'point/signNotify', //签到提醒
    USER_SIGN: SERVER_API_MAICAI_PYTHON + 'api/v2/user/sign/',    //签到

    /** 专题活动 **/
    ACTIVITY_SPECIAL: SERVER_API_MAICAI + 'activity/dynamicPage',

    /** 春节抽奖 **/
    ACTIVITY_REWARD_GET_ASSIST: SERVER_API_MAICAI + 'festivalLottery/getInviteRecord', // 好友助力列表
    ACTIVITY_REWARD_GET_WQ_RANK: SERVER_API_MAICAI + 'lottery/wang', // 旺气排行
    ACTIVITY_REWARD_GET_RECORD: SERVER_API_MAICAI + 'lottery/prize', // 中奖纪录
    ACTIVITY_REWARD_GET_DETAIL: SERVER_API_MAICAI + 'lottery/detail', // 活动详情
    ACTIVITY_REWARD_GET_DRAW: SERVER_API_MAICAI + 'lottery/draw/ ', // 用户抽奖

    /** 集卡兑奖 **/
    ACTIVITY_CARD_LOTTERY_DETAIL: SERVER_API_MAICAI + 'cardLottery/detail/',
    ACTIVITY_CARD_LOTTERY_DRAW: SERVER_API_MAICAI + 'cardLottery/drawCard/',
    ACTIVITY_CARD_LOTTERY_RECORD: SERVER_API_MAICAI + 'cardLottery/record/',
    ACTIVITY_CARD_LOTTERY_DRAW_PRIZE: SERVER_API_MAICAI + 'cardLottery/drawPrize/',
    ACTIVITY_CARD_LOTTERY_DRAW_CARD_PREPARE: SERVER_API_MAICAI + 'cardLottery/shareCardPrepare/',
    ACTIVITY_CARD_LOTTERY_DRAW_CARD_ASK_PREPARE: SERVER_API_MAICAI + 'cardLottery/askCardPrepare/',
    ACTIVITY_CARD_LOTTERY_DRAW_SHARE_CARD: SERVER_API_MAICAI + 'cardLottery/shareCard/',
    ACTIVITY_CARD_LOTTERY_DRAW_SHARE_CARD_RECEIVE: SERVER_API_MAICAI + 'cardLottery/shareCardReceive/',
    ACTIVITY_CARD_LOTTERY_DRAW_SHARE_ASK_CARD: SERVER_API_MAICAI + 'cardLottery/askCard/',
    ACTIVITY_CARD_LOTTERY_DRAW_SHARE_ASK_CARD_SEND: SERVER_API_MAICAI + 'cardLottery/askCardSend/',
    ACTIVITY_CARD_LOTTERY_RULE: 'http://maicai.api.ddxq.mobi/info/single?alias=card_collection',

    /** vip **/
    VIP_RECEIVE_TICKET: SERVER_API_MAICAI + 'vip/receiveTicket', // 获取优惠券
    VIP_DETAIL: SERVER_API_MAICAI + 'vip/detail', // vip主页
    VIP_PRODUCT_ALL: SERVER_API_MAICAI + 'vip/product', // vip商品

    /** 充值 **/
    RECHARGE_FLOW_LIST: SERVER_API_MAICAI + '/balance/flow/',   //充值明细


    /** 二维码 **/
    QR_CODE: SERVER_API_MAICAI + 'tool/qrcode',

    /** 打开/下载app **/
    OPEN_APP_BY_YYB: 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yaya.zone&g_f=991653',

    APP_DOWN: 'https://www.100.me/mc'
};
